package com.bank.basic.service.client;

import com.bank.common.commonUtil.AuthContextHolderUtil;
import com.bank.model.entity.Account;
import com.bank.model.vo.account.AccountUpdatePasswordVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * @author Cejay1314
 * @version 1.0
 * @create 2023/3/28 16:39
 */
@FeignClient(name = "service-account", url = "http://localhost:8083/user/account")
@Component
public interface AccountService {
    @PostMapping("/query/one")
    Account getAccount(@RequestParam String accountId);
    @PostMapping("/update")
    void updataAccount(@RequestBody Account account);
    @GetMapping("/query/id")
    List<Account> getAccounts(@RequestParam Long userId);

}
